/**
 */
package de.nordakademie.hausarbeit.configwriter.strutsConfDsl.impl;

import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.Action;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.Method;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.PackageContainer;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.Parameter;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.Result;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.StrutsConfDslFactory;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.StrutsConfDslPackage;
import de.nordakademie.hausarbeit.configwriter.strutsConfDsl.StrutsConfig;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class StrutsConfDslFactoryImpl extends EFactoryImpl implements StrutsConfDslFactory
{
  /**
   * Creates the default factory implementation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static StrutsConfDslFactory init()
  {
    try
    {
      StrutsConfDslFactory theStrutsConfDslFactory = (StrutsConfDslFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.nordakademie.de/hausarbeit/configwriter/StrutsConfDsl"); 
      if (theStrutsConfDslFactory != null)
      {
        return theStrutsConfDslFactory;
      }
    }
    catch (Exception exception)
    {
      EcorePlugin.INSTANCE.log(exception);
    }
    return new StrutsConfDslFactoryImpl();
  }

  /**
   * Creates an instance of the factory.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public StrutsConfDslFactoryImpl()
  {
    super();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public EObject create(EClass eClass)
  {
    switch (eClass.getClassifierID())
    {
      case StrutsConfDslPackage.STRUTS_CONFIG: return createStrutsConfig();
      case StrutsConfDslPackage.PACKAGE_CONTAINER: return createPackageContainer();
      case StrutsConfDslPackage.ACTION: return createAction();
      case StrutsConfDslPackage.RESULT: return createResult();
      case StrutsConfDslPackage.CLASS: return createClass();
      case StrutsConfDslPackage.METHOD: return createMethod();
      case StrutsConfDslPackage.PARAMETER: return createParameter();
      default:
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
    }
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public StrutsConfig createStrutsConfig()
  {
    StrutsConfigImpl strutsConfig = new StrutsConfigImpl();
    return strutsConfig;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public PackageContainer createPackageContainer()
  {
    PackageContainerImpl packageContainer = new PackageContainerImpl();
    return packageContainer;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Action createAction()
  {
    ActionImpl action = new ActionImpl();
    return action;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Result createResult()
  {
    ResultImpl result = new ResultImpl();
    return result;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public de.nordakademie.hausarbeit.configwriter.strutsConfDsl.Class createClass()
  {
    ClassImpl class_ = new ClassImpl();
    return class_;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Method createMethod()
  {
    MethodImpl method = new MethodImpl();
    return method;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public Parameter createParameter()
  {
    ParameterImpl parameter = new ParameterImpl();
    return parameter;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public StrutsConfDslPackage getStrutsConfDslPackage()
  {
    return (StrutsConfDslPackage)getEPackage();
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @deprecated
   * @generated
   */
  @Deprecated
  public static StrutsConfDslPackage getPackage()
  {
    return StrutsConfDslPackage.eINSTANCE;
  }

} //StrutsConfDslFactoryImpl
